/**
 * 环境变量相关请求
 */
 import request from "./request";


 let api = '/api/manage/config/'

  
 export const setDefault = data => {
  return request({
    method: 'POST',
    url: api + "set_default/",
    data
  })
  }

 export const addConfig = data => {
 return request({
   method: 'POST', 
   url: api,
   data
 })
 }
 
 export const updateConfig = data => {
 return request({
   method: 'PATCH',
   url: api,
   data
 })
 }
 
 export const deleteConfig = params => {
 return request({
   method: 'DELETE',
   url: api,
   params
 })
 }
 
 export const queryConfig = params => {
 return request({
   method: 'GET',
   url: api,
   params
 })
 }

 export const getParamsAdvice = params => {
  return request({
    method: 'GET',
    url: api + "get_params_advice/",
    params
  })
  }
